<template>
  <div>
    <BasicModal
      v-bind="$attrs"
      @register="registerModal"
      width="60%"
      title="查看评论"
      @ok="handleSubmit"
    >
      <CommentProp />
    </BasicModal>
  </div>
</template>

<script lang="ts">
  import { BasicModal, useModalInner } from '/@/components/Modal';
  import { defineComponent } from 'vue';
  import CommentProp from './comment/index.vue';

  export default defineComponent({
    components: {
      BasicModal,
      CommentProp,
    },
    setup() {
      // 模态框
      const [registerModal] = useModalInner();
      const handleSubmit = async () => {};

      return {
        registerModal,
        handleSubmit,
      };
    },
  });
</script>

<style scoped lang=""></style>
